import React from 'react'
import PropTypes from 'prop-types'

class OutputArea extends React.Component {
  componentDidMount() {
    // do something here
  }

  render() {
    const { editorOutput } = this.props
    return (
      <pre>
        {editorOutput}
      </pre>
    )
  }
}

OutputArea.propTypes = {
  editorOutput: PropTypes.string.isRequired,
}

export default OutputArea
